package com.sciencep.pro.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sciencep.pro.common.domain.QueryRequest;
import com.sciencep.pro.common.domain.ResponseResult;
import com.sciencep.pro.core.domain.dto.project.ProTypeTO;
import com.sciencep.pro.core.domain.dto.protypenode.ProTypeNodeTO;
import com.sciencep.pro.core.domain.dto.user.UserDetail;
import com.sciencep.pro.core.domain.entity.ProType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sciencep.pro.core.domain.vo.protypenode.ProTypeNodeVO;

import java.util.List;

/**
 * @author Sciencep
 */
public interface IProTypeService extends IService<ProType> {



    List<ProTypeTO> getTypeList();

    Page<ProTypeNodeTO> getTypeNodeList(QueryRequest queryRequest);

    ResponseResult<ProTypeNodeTO> saveTypeNode(ProTypeNodeVO proTypeNodeVO, UserDetail userDetail);

    ResponseResult<ProTypeNodeTO> deleteTypeNode(String typeId, UserDetail userDetail);

    ResponseResult<ProTypeNodeTO> updateTypeNode(ProTypeNodeVO proTypeNodeVO, UserDetail userDetail);

}
